On the Performance of WEAK-HEAPSORT
نویسندگان
چکیده
Dutton (1993) presents a further HEAPSORT variant called WEAK-HEAPSORT, which also contains a new data structure for priority queues. The sorting algorithm and the underlying data structure are analyzed showing that WEAK-HEAPSORT is the best HEAPSORT variant and that it has a lot of nice properties. It is shown that the worst case number of comparisons is ndlog ne 2 ne + n dlog ne n log n+ 0:1n and weak heaps can be generated with n 1 comparisons. A double-ended priority queue based on weakheaps can be generated in n+ dn=2e 2 comparisons. Moreover, examples for the worst and the best case of WEAK-HEAPSORT are presented, the number of Weak-Heaps on f1; : : : ; ng is determined, and experiments on the average case are reported.
منابع مشابه
Pushing the Limits in Sequential Sorting
With re nements to the WEAK-HEAPSORT algorithm we establish the general and practical relevant sequential sorting algorithm RELAXED-WEAK-HEAPSORT executing exactly ndlog ne 2 ne + 1 n log n 0:9n comparisons on any given input. The number of transpositions is bounded by n plus the number of comparisons. Experiments show that RELAXED-WEAK-HEAPSORT only requires O(n) extra bits. Even if this space...
متن کاملTwo Constant-Factor-Optimal Realizations of Adaptive Heapsort
In this paper we introduce two efficient priority queues. For both, insert requires O(1) amortized time and extract-min O(lgn) worstcase time including at most lgn+O(1) element comparisons, where n is the number of elements stored. One priority queue is based on a weak heap (array-based) and the other on a weak queue (pointer-based). In both, the main idea is to temporarily store the inserted e...
متن کاملA New Data Structure for Heapsort with Improved Number of Comparisons
In this paper we present a new data structure for implementing heapsort algorithm for pairs of which can be simultaneously stored and processed in a single register. Since time complexity of Carlsson type variants of heapsort has already achieved a leading coefficient of 1, concretely n lgn + n lg lg n, and lower bound theory asserts that no comparison based in-place sorting algorithm can sort ...
متن کاملA Comparative Study of Some Ingenious Sorting Algorithms on Modern Architectures
Heapsort, Quicksort and Mergesort are three ingenious sorting algorithms, which deserve special attention. In the past these algorithms were studied in detail, but the study was carried out on old machines and involved cache simulations. Over the years computer architecture has gone through radical changes. Therefore, a study valid on old architectures may not be valid on new architectures. The...
متن کاملEVALUATION THE EFFECT OF STRONG COLUMN-WEAK BEAM RATIO ON SEISMIC PERFORMANCE OF OPTIMALLY DESIGNED STEEL MOMENT FRAMES
The present work is aimed at assessing the impact of strong column-weak beam (SCWB) criterion on seismic performance of optimally designed steel moment frames. To this end, different SCWB ratios are considered for steel special moment resisting frame (SMRF) structures and performance-based design optimization process is implemented with the aid of an efficient metaheuristic. The seismic collaps...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1999